package com.BigDate.server.mapper;

import com.BigDate.server.pojo.Project;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stx
 * @since 2021-12-22
 */
public interface ProjectMapper extends BaseMapper<Project> {

    /**
     * 获取项目(分页)
     * @param page
     * @param project
     * @return
     */
    IPage<Project> getProjectByPage(Page<Project> page,@Param("project") Project project);

    List<Project> findLimitPr();

    List<Project> findLimitIt();

    List<Project> findLimitHi();

    Project findById(Integer id);
}
